import http from "@/utils/http";
const prefixUrl = {
  query: "/analysis/payment-order/recharge-list",
  queryDataById: "/analysis/payment-order/detail", // 不存在的接口 是为了控制详情按钮
  quertySearchDicts: "/analysis/payment-order/filter-data",
  queryRechargeRule: "/analysis/recharge-rule/info",
  createRechargeRule: "/analysis/recharge-rule/create",
  updateRechargeRule: "/analysis/recharge-rule/update",
};
export default {
  role: {
    query: "POST:" + prefixUrl.query,
    queryDataById: "POST:" + prefixUrl.queryDataById,
    quertySearchDicts: "POST:" + prefixUrl.quertySearchDicts,
    queryRechargeRule: "POST:" + prefixUrl.queryRechargeRule,
    createRechargeRule: "POST:" + prefixUrl.createRechargeRule,
    updateRechargeRule: "POST:" + prefixUrl.updateRechargeRule,
  },
  query(params = {}) {
    return http.post(prefixUrl.query, params);
  },
  quertySearchDicts(params = {}) {
    return http.post(prefixUrl.quertySearchDicts, params);
  },
  queryRechargeRule(params = {}) {
    return http.post(prefixUrl.queryRechargeRule, params);
  },
  createRechargeRule(params = {}) {
    return http.post(prefixUrl.createRechargeRule, params);
  },
  updateRechargeRule(params = {}) {
    return http.post(prefixUrl.updateRechargeRule, params);
  },
};
